package localhost.services.ExtHrmresources;

public class ExtHrmresourcesPortTypeProxy implements localhost.services.ExtHrmresources.ExtHrmresourcesPortType {
  private String _endpoint = null;
  private localhost.services.ExtHrmresources.ExtHrmresourcesPortType extHrmresourcesPortType = null;
  
  public ExtHrmresourcesPortTypeProxy() {
    _initExtHrmresourcesPortTypeProxy();
  }
  
  public ExtHrmresourcesPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initExtHrmresourcesPortTypeProxy();
  }
  
  private void _initExtHrmresourcesPortTypeProxy() {
    try {
      extHrmresourcesPortType = (new localhost.services.ExtHrmresources.ExtHrmresourcesLocator()).getExtHrmresourcesHttpPort();
      if (extHrmresourcesPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)extHrmresourcesPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)extHrmresourcesPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (extHrmresourcesPortType != null)
      ((javax.xml.rpc.Stub)extHrmresourcesPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public localhost.services.ExtHrmresources.ExtHrmresourcesPortType getExtHrmresourcesPortType() {
    if (extHrmresourcesPortType == null)
      _initExtHrmresourcesPortTypeProxy();
    return extHrmresourcesPortType;
  }
  
  public int getUseridByWorkcode(java.lang.String in0) throws java.rmi.RemoteException{
    if (extHrmresourcesPortType == null)
      _initExtHrmresourcesPortTypeProxy();
    return extHrmresourcesPortType.getUseridByWorkcode(in0);
  }
  
  public localhost.services.ExtHrmresources.AnyType2AnyTypeMapEntry[] getUserInfoByWorkcode(java.lang.String in0) throws java.rmi.RemoteException{
    if (extHrmresourcesPortType == null)
      _initExtHrmresourcesPortTypeProxy();
    return extHrmresourcesPortType.getUserInfoByWorkcode(in0);
  }
  
  public localhost.services.ExtHrmresources.AnyType2AnyTypeMapEntry[][] getUserInfos() throws java.rmi.RemoteException{
    if (extHrmresourcesPortType == null)
      _initExtHrmresourcesPortTypeProxy();
    return extHrmresourcesPortType.getUserInfos();
  }
  
  
}